package com.example.assignment01_javaee.Service;

import com.example.assignment01_javaee.Entity.Inventory;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface InventoryService {
    //查询所有的inventory
    List<Inventory> getAllInventories();

    //根据product id查找inventory
    Inventory getInventoryByProductId(int productId);

    //更改inventory数据
    String updateInventoryById(int productId,int quantity);
}
